package com.oak.broke.exception;

import lombok.Data;

/**
 * @Author xyguo22
 * @Description //TODO
 * @Date 2024/10/8
 */
@Data
public class BusinessException extends RuntimeException{


    /**
     * 状态码
     */
    private Integer code;

    /**
     * 异常信息
     */
    private String msg;

    public BusinessException() {
        super();
    }

    public BusinessException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public BusinessException( String msg) {
        this.code = 550;
        this.msg = msg;
    }

}
